import java.util.List;

public class Test {
    public static void main(String[] args) {
        String[] words ={"i", "love", "leetcode", "i", "love", "coding"};
        Solution solution =new Solution();
        List<String> ret =solution.topKFrequent(words,2);
        System.out.println(ret);
    }
}
